package xyz.zhangyi.onjava.java8.example.lambda.orchard;

import java.util.List;
import java.util.stream.Collectors;

public class StreamedOrchard extends Orchard {
    @Override
    public List<Apple> filter() {
        return apples.stream().filter(a -> a.getColor().equals("green")).collect(Collectors.toList());
    }
}
